
from django.conf.urls.defaults import patterns
    
urlpatterns = patterns('',
    (r'^listar/ot=(?P<ot>\w+)&o=(?P<o>\d+)&page=(?P<page>\d+)/$',                      'wal.pedidos.views.listar'),
    #(r'^listar/ot=(?P<ot>\w+)&o=(?P<o>\d+)/$',                      'wal.pedidos.views.listar'),
    (r'^ver/(?P<object_id>\d+)/$',                  'wal.pedidos.views.ver'),
    (r'^crear/$',                                   'wal.pedidos.views.crear'),
    (r'^editar/(?P<object_id>\d+)/$',               'wal.pedidos.views.editar'),
#    (r'^borrar/p=(?P<object_id>\d+)&ot=(?P<ot>\w+)&o=(?P<o>\d+)&page=(?P<page>\d+)/$',               'wal.pedidos.views.borrar'),
    (r'^detalle/borrar/(?P<object_id>\d+)/$',       'wal.pedidos.views.borrarDetalle'),
    (r'^finalizar/(?P<object_id>\d+)/$',            'wal.pedidos.views.finalizar'),
    (r'^report/(?P<object_id>\d+)/$',               'wal.pedidos.views.reportPedido'),
    (r'^report/$',                                  'wal.pedidos.views.reportDePedidos'),
    (r'^csv/(?P<object_id>\d+)/$',                  'wal.pedidos.views.csvPedido'),
    (r'^csv/stock/(?P<object_id>\d+)/$',            'wal.pedidos.views.csvStock'),
    (r'^csv/$',                                     'wal.pedidos.views.csvPlanillas'),
    (r'^cancelar/(?P<object_id>\d+)/$',                  'wal.pedidos.views.cancelar'),
    )
 
    